{%include file="m.index.header.tpl.php"%}
<!--主体部分-->
<form name="myform" action="" method="get">
<div class="container" style="margin-top:70px;">
  <div class="row" style="margin-top:10px;">
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">学年学期:</label>
        <div class="col-sm-10">
          <select class="form-control" style="padding:0;" name="semester_id">
			{%foreach from=$semester_lists key=key item=value%}
				  <option value="{%$value.semester_id%}"{%if $value.semester_id == $semester_id%}selected{%/if%}>{%$value.semester_name%}</option>
			{%/foreach%}
		  </select>
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label">班级:</label>
        <div class="col-sm-10">
          <select class="form-control" style="padding:0;" name="class_id">
			{%foreach from=$appoint_lists key=key item=value%}
				  <option value="{%$value.class_id%}"{%if $value.class_id == $class_id%}selected{%/if%}>{%$value.class_name%}</option>
			{%/foreach%}
		  </select>
        </div>
      </div>
    </div>
    <div class="col-sm-12 distance" >
      <div class="form-group">
        <div class="col-sm-10 text-center" >
		  <input type="hidden" name="message_type" value="{%$message_type%}">
		  <input type="hidden" name="a" value="message.semesterlist">
          <button type="submit" class="btn btn-success" style="width:80%">搜索</button>
        </div>
      </div>
    </div>
  </div>
  <div class="row" style="margin-top:15px;margin-left:1px; margin-right:1px;">
  {%foreach from=$divide_lists key=key item=value%}
    <table class="table table-striped table-bordered text-center"  id="middles">
      <tr>
        <td>学号</td>
        <td>{%$value.student_no%}</td>
      </tr>
      <tr>
        <td>姓名</td>
        <td>{%$value.student_name%}</td>
      </tr>
      <tr>
        <td>评语内容</td>
        <td>{%$value.message_content%}</td>
      </tr>
      <tr>
        <td>操作</td>
        <td><a href="index.php?a=message.details&message_id={%$value.message_id%}&student_id={%$value.student_id%}&semesterlist_type=wangnian" class="btn btn-success btn-sm" >查看</a></td>
      </tr>
    </table>
   {%/foreach%}  	
  </div>
</div>
<!--container  end--> 
<!--主体部分  end--> 
<!--底部-->
{%include file="m.index.footer.tpl.php"%}
